package se.rende.myrss.data;

import java.util.List;

import com.sun.syndication.feed.synd.SyndEntry;

public interface FilterType {
	/**
	 * Id of filter type, that must be unique.
	 * @return unique filter type id
	 */
	public String getId();
	
	/**
	 * Execute the filter of input using params.
	 * @param input text to filter
	 * @param params any number of parameters used in the filtering
	 * @param syndEntry the item received from the rss site or RssServer
	 * @return the filtered result
	 */
	public String execute(String input, List<String> params, SyndEntry syndEntry);
	
	/**
	 * Called before first item is processed in series of items.
	 */
	public void startBatch();
}
